home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 August: Tool Chest / Dev.CD Aug 94.toast / New System Software Extensions / OpenDoc A6 / SOM / OpenDoc and SOM / CPlusPlus / DragDrop.xh < prev    next >
Encoding:
Text File  |  1994-04-19  |  3.2 KB  |  147 lines  |  [TEXT/MPS ]

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: Locrian:WWDCSun:CPlusPlus:DragDrop.xh.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: somc/smemit.c
  7.  *     SOM Emitter emitxh.dll: somc/smmain.c
  8.  */
  9.  
  10. /*
  11.  * 
  12.  *  Classes defined in this interface
  13.  * 
  14.  */
  15.  
  16.  
  17. #ifndef SOM_ODDragAndDrop_xh
  18. #define SOM_ODDragAndDrop_xh
  19.  
  20. class ODDragAndDrop;
  21.  
  22. #define ODDragAndDrop_MajorVersion 1
  23. #define ODDragAndDrop_MinorVersion 0
  24.  
  25. /* C++ som defs */
  26. #include <somcls.xh>
  27.  
  28. /* Include C++ parent defs */
  29. #ifndef SOM_ODBaseDragAndDrop_xh
  30. #include <DragDrpB.xh>
  31. #endif
  32.  
  33. #ifndef ODDragAndDrop_API
  34. #define ODDragAndDrop_API
  35. /*
  36.  * -- The Class API
  37.  */
  38.  
  39. /*
  40.  * Start of user-defined types:
  41.  */
  42. class ODExtension;
  43. class ODStorageSystem;
  44. class ODWindow;
  45. class ODSession;
  46. class ODStorageUnit;
  47. class ODWindowState;
  48. class ODPart;
  49. class ODStorageUnitView;
  50. class ODFacet;
  51. class ODDragItemIterator;
  52. class ODFrame;
  53.  
  54. /*
  55.  * End of user-defined types.
  56.  */
  57.  
  58. #if applec ^ PRAGMA_LIB_EXPORT
  59. #pragma lib_export on
  60. #endif
  61.  
  62.  
  63. /* A procedure to create the ODDragAndDrop Class */
  64. SOMEXTERN SOMClass * SOMLINK ODDragAndDropNewClass(
  65.         integer4 majorVersion,
  66.         integer4 minorVersion);
  67.  
  68. /* The API to the ODDragAndDrop class object, and the methods it introduces. */
  69. typedef struct ODDragAndDropClassDataStructure {
  70.     SOMClass *classObject;
  71.     somMToken GetDragAttributes;
  72.     somMToken GetDragReference;
  73.     somMToken MyDragTrackingHandler;
  74.     somMToken MyReceiveDropHandler;
  75.     somMToken MySendDataProc;
  76.     somMToken FindTargetFacet;
  77.     somMToken PromiseAEHandler;
  78.     somMToken GetPromiseFromDragManager;
  79.     somMToken GetDataFromDragManager;
  80.     somMToken reserved1;
  81. } ODDragAndDropClassDataStructure;
  82. #ifdef SOM_NO_DATA_EXPORTS
  83.    SOMEXTERN ODDragAndDropClassDataStructure * ODDragAndDropGetClassData ( void );
  84. #   undef ODDragAndDropClassData
  85. #   define ODDragAndDropClassData (*ODDragAndDropGetClassData())
  86. #else
  87.    SOMEXTERN ODDragAndDropClassDataStructure ODDragAndDropClassData;
  88. #endif /* SOM_NO_DATA_EXPORTS */
  89.  
  90. #if applec ^ PRAGMA_LIB_EXPORT
  91. #pragma lib_export off
  92. #endif
  93.  
  94. #define _ODDragAndDrop ODDragAndDropClassData.classObject
  95.  
  96. /* The API to parentMtabs for ODDragAndDrop, and the instance data it introduces. */
  97. SOMEXTERN struct ODDragAndDropCClassDataStructure {
  98.     somMethodTabs parentMtab;
  99.     somDToken instanceDataToken;
  100. } ODDragAndDropCClassData;
  101.  
  102. /*
  103.  * -- Typedefs for Procedures that support Methods introduced by ODDragAndDrop
  104.  */
  105. SOMEXTERN {
  106. }
  107.  
  108. #endif /* ODDragAndDrop_API */
  109.  
  110.  
  111. /*
  112.  * -- Method Tokens are Thunks
  113.  */
  114. #undef somresolve_
  115. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  116.  
  117. /*
  118.  * -- The C++ Wrapper Class for ODDragAndDrop
  119.  */
  120. class ODDragAndDrop : public ODBaseDragAndDrop
  121. {
  122. public:
  123.  
  124. void *operator new(size_t size)
  125. {
  126.    SOM_IgnoreWarning(size);
  127.    if (!ODDragAndDropClassData.classObject) 
  128.       ODDragAndDropNewClass(ODDragAndDrop_MajorVersion,ODDragAndDrop_MinorVersion);
  129.    return (void *)
  130.       ((somTD_SOMClass_somNew)
  131.       somresolve_((SOMObject *)((void*)(ODDragAndDropClassData.classObject)),
  132.                  SOMClassClassData.somNew))
  133.          ((SOMClass *)((void*)(ODDragAndDropClassData.classObject)));
  134. }
  135.  
  136. void operator delete(void * obj)
  137. {
  138.    ((SOMObject *)obj)->somFree();
  139. }
  140.  
  141.  
  142. };   /* ODDragAndDrop */
  143.  
  144.  
  145.  
  146. #endif       /* SOM_ODDragAndDrop_xh */
  147.